package org.example.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.dao.userdao;
import org.example.domain.user;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class userserviceimpl extends ServiceImpl<userdao, user> implements userservice{
    @Autowired
    private userdao userdao;
    @Override
    public IPage getpage(int current, int size) {
IPage page = new Page(current, size);
        userdao.selectPage(page,null);
        return page;
    }
}
